package com.example.demo.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @program: demo
 * @description: 用户
 * @author: 陈恩涛
 * @create: 2023-06-17 23:01
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Student {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String userName;

    private int score;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
